# include<stdio.h>
# include <string.h>
# include <unistd.h>
#define N 101
#define Placeholder '-'
int main()
{
    char arr[N];
    char around[4]={'/','-','|','\\'}; 
    memset(arr, 0, sizeof(arr)); //将所有的字符填充0 \0
    int con=0;
   while(con<=100)
    {
        printf("[%-100s][%d%%][%c]\r",arr,con,around[con%4]);
        fflush(stdout);
        usleep(100000);
        arr[con]='-';
        con++;
    }
    printf("\n");
    return 0;
}
